<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    ul, li {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    a {
      text-decoration: none;
      color: #333;
    }
    body {
      background-color: #f2f2f2;
    }
    ul > li {
      float: left;
      margin-left: 12px;
    }
    ul > li > a {
      display: inline-block;
      width: 36px;
      height: 36px;
      text-align: center;
      line-height: 36px;
      border-radius: 6px;
      background-color: #fff;
      color: #3951b3;
      font-size: 14px;
    }
    ul > li > a:hover, ul > li.active > a {
      background-color: blue;
      color: #fff;
    }
    ul > li.next > a {
      width: 80px;
    }
  </style>
</head>
<body>
    <ul>
      <li class="item"><a href="#">1</a></li>
      <li class="item"><a href="#">2</a></li>
      <li class="item"><a href="#">3</a></li>
      <li class="item"><a href="#">4</a></li>
      <li class="item"><a href="#">5</a></li>
      <li class="item"><a href="#">6</a></li>
      <li class="item"><a href="#">7</a></li>
      <li class="item"><a href="#">8</a></li>
      <li class="item"><a href="#">9</a></li>
      <li class="item"><a href="#">10</a></li>
      <li class="item next"><a href="#">下一页</a></li>
    </ul>
</body>
</html>